package com.huatai.range.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Array;
import java.time.LocalDate;
import java.io.Serializable;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 试验信息表;
 * </p>
 *
 * @author luoxc
 * @since 2023-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_trial_table")
@ApiModel(value = "TrialTable对象", description = "试验信息表;")
public class TrialTableEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键id")
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	@ApiModelProperty(value = "试验id", required = true)
	@NotBlank(message = "试验id不能为空")
	private String trialId;

	@ApiModelProperty(value = "试验名称", required = true)
	@NotBlank(message = "试验名称不能为空")
	private String trialName;

	@ApiModelProperty(value = "表名称")
	private String tabName;

	@ApiModelProperty(value = "表别名")
	private String alias;

	@ApiModelProperty(value = "表类型")
	private String tabType;

	@ApiModelProperty(value = "说明")
	private String remark;

    /*@ApiModelProperty(value = "创建时间")
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDate createTime;

    @ApiModelProperty(value = "更新时间")
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDate updateTime;*/


}
